<template>
  <div>
    父组件---城市ID: {{ selectId }}
    <div>------------------</div>
    <div>子组件</div>
    <!-- <BaseSelect :city-id="selectId" @updateCityId="selectId = $event" /> -->

    <!-- <BaseSelect :value="selectId" @input="selectId = $event" /> -->
    <!-- 可以使用v-model语法糖  -->
    <BaseSelect v-model="selectId" />
  </div>
</template>

<script>
import BaseSelect from './components/BaseSelect.vue'
export default {
  components: {
    BaseSelect
  },
  data() {
    return {
      selectId: '102'
    }
  },
  methods: {

  }
}
</script>

<style></style>
